package com.tian.admin.feign;

import com.tian.common.result.BaseResult;
import com.tian.common.result.Result;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhumengping
 * @title: TestUserController
 * @projectName zhump-cloud
 * @date 2023/7/31 10:25
 */
@RestController
@RequestMapping(value = "/local")
public class PortController {


    @Value("${server.port}")
    private String port;

    @RequestMapping(value = "/port")
    public BaseResult<String> getPort(){
        return Result.ok(port);
    }

}
